<script language=Javascript><!--
<TMPL_VAR NAME=MATCHSTATS_HOMETEAM_TEAM_SUBS ESCAPE=JS>
<TMPL_VAR NAME=MATCHSTATS_AWAYTEAM_TEAM_SUBS ESCAPE=JS>

function setSubs () {
	var f= document.forms[0];
	for (var i= 0; i<f.elements.length; i++) {
		if (f.elements[i].type == 'checkbox') {
			if (eval("typeof("+f.elements[i].name+") != 'undefined'")) {
				f.elements[i].checked= 1;
			}
		}
	}
}

//-->
</script>

<h2 class="contentTitle">Edit Match Details</h2>

<b>Season:</b><br/>
<select name="FK_SEASON_ID"><TMPL_VAR NAME=SEASON_SEASON_OPTIONS></select><br/>
<b>Competition:</b><br/>
<select name="FK_COMPETITION_ID"><TMPL_VAR NAME=COMPETITION_COMPETITION_OPTIONS></select><br/>
<b>Match Name:</b><br/>
<input type=text name=MATCH_NAME value="<TMPL_VAR NAME=MATCH_NAME>" size=80><p>
<b>KO:</b><br/>
<input type=text name=MATCH_KOTIME_DATE value="<TMPL_VAR NAME=MATCH_KOTIME_EDATE>" size=10>
<input type=text name=MATCH_KOTIME_TIME value="<TMPL_VAR NAME=MATCH_KOTIME_TIME>" size=6><br/>
<b>Referee:</b><br/>
<select name="FK_REFEREE_ID"><option value="">Please select ...</option><TMPL_VAR NAME=REFEREE_REFEREE_OPTIONS></select><br/>

<b>Attendance:</b><br/>
<input type=text name=MATCH_ATTENDANCE value="<TMPL_VAR NAME=MATCH_ATTENDANCE>" size=20><p>

<b><TMPL_VAR NAME=MATCHSTATS_HOMETEAM_CLUB_CLUB_FULLNAME> Scores:<b><br/>
FT: <input type=text name="MATCH_HOMESCORE" value="<TMPL_VAR NAME=MATCH_HOMESCORE>" size=5> 
HT: <input type=text name="MATCH_HOMEHTSCORE" value="<TMPL_VAR NAME=MATCH_HOMEHTSCORE>" size=5><br/>
<b><TMPL_VAR NAME=MATCHSTATS_AWAYTEAM_CLUB_CLUB_FULLNAME> Scores:<b><br/>
FT: <input type=text name="MATCH_AWAYSCORE" value="<TMPL_VAR NAME=MATCH_AWAYSCORE>" size=5> 
HT: <input type=text name="MATCH_AWAYHTSCORE" value="<TMPL_VAR NAME=MATCH_AWAYHTSCORE>" size=5><br/>
<b>Summary Active:</b><br/>
<select name="MATCHSTATS_STATSACTIVE"><TMPL_VAR NAME=MATCHSTATS_STATSACTIVE_OPTIONS></select><p>

<input type=button class="button" onClick="updateObject('MATCHSTATS','<TMPL_VAR NAME=o>','<TMPL_VAR NAME=p>','Matchstats.Edit');" value="Update &raquo;">
<p>

<b><TMPL_VAR NAME=MATCHSTATS_HOMETEAM_CLUB_CLUB_NAME> Team</b><br/>
<TMPL_VAR NAME=MATCHSTATS_HOMETEAM_TEAM_LIST>
<p>

<b><TMPL_VAR NAME=MATCHSTATS_AWAYTEAM_CLUB_CLUB_NAME> Team</b><br/>
<TMPL_VAR NAME=MATCHSTATS_AWAYTEAM_TEAM_LIST>
<p>

<b>Active MOTM Voting:</b><br/>
<select name="MATCHSTATS_MOTMACTIVE"><TMPL_VAR NAME=MATCHSTATS_MOTMACTIVE_OPTIONS></select><p>

<input type=button class="button" onClick="updateObject('MATCHSTATS','<TMPL_VAR NAME=o>','<TMPL_VAR NAME=p>','Matchstats.Edit');" value="Update &raquo;">

<TMPL_VAR NAME=OBJECTS> 

<script language=javascript><!--
	setSubs();
//-->
</script> 